public class EagerSingleton {
    private EagerSingleton() {}

    private static final EagerSingleton instance = new EagerSingleton();

    public static EagerSingleton getInstance() {
        return instance;
    }

    private String myName;

    public String shoInfo() {
        return Integer.toString(this.hashCode());
    }

    public String getMyName() {
        return myName;
    }

    public void setMyName(String myName) {
        this.myName = myName;
    }
}